//
//  QDTicketSetviceViewController.swift
//  QDMetroClient
//
//  Created by YueWen on 2019/2/26.
//  Copyright © 2019 YueWen. All rights reserved.
//

import UIKit

/// 票务信息
final class QDTicketSetviceViewController: QDLargeTitleViewController {

    override var titles: [String] {
        get {
            return ["车票介绍","票务优惠","票务规则","乘车码使用说明"]
        }
    }
    
    private var urls: [String] {
        get {
            return ["http://site.qd-metro.com/view/201806191025779683818",
                    "http://site.qd-metro.com/view/20180621101394916951",
                    "http://site.qd-metro.com/view/2018061910271753045597",
                    "http://site.qd-metro.com/view/2018061910281846018280"]
        }
    }
    
    
    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view.
        largeTableHeaderView.title = "票务信息"
    }
    
    
    override var nav_mutableBarShadowHidden: Bool { return true }
    
    
    // MARK: UITableViewDelegate
    override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
        pushToWebViewController(url:urls[indexPath.row] , autoTitle: false, title: "票务信息", qdmetro: false)
    }

}
